<?php
require_once './protected/utils/Strings.php';
Yii::app()->clientscript
// use it when you need it!
/*
 ->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap.css' )
 ->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap-responsive.css' )
 ->registerCoreScript( 'jquery' )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-transition.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-alert.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-modal.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-dropdown.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-scrollspy.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tab.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tooltip.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-popover.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-button.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-collapse.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-carousel.js', CClientScript::POS_END )
 ->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-typeahead.js', CClientScript::POS_END )
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!--[if !IE 7]>
	<style type="text/css">
		#wrap {display:table;height:100%}
	</style>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />

<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css"
	href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
<!-- Le fav and touch icons -->
</head>

<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="#"><?php echo Yii::app()->name ?> </a>
				<div class="nav-collapse">
					<?php $this->widget('zii.widgets.CMenu',array(
							'htmlOptions' => array( 'class' => 'nav' ),
							'activeCssClass'	=> 'active',
							'items'=>array(
						array('label'=> Strings::LOGIN, 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
						array('label'=> Strings::HOME, 'url'=>array('/site/index'), 'visible'=>!Yii::app()->user->isGuest),
						array('label'=> Strings::ABOUT, 'url'=>array('/site/page', 'view'=>'about')),
						array('label'=> Strings::CONTACT, 'url'=>array('/site/contact')),
						array('label'=> Strings::LOGOUT. ' - '.Yii::app()->user->name.'', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
						),
					)); ?>

				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>

	<div class="cont">
		<div class="container-fluid">
			<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
					'links'=>$this->breadcrumbs,
					'homeLink'=>false,
					'tagName'=>'ul',
					'separator'=>'',
					'activeLinkTemplate'=>'<li><a href="{url}">{label}</a> <span class="divider">/</span></li>',
					'inactiveLinkTemplate'=>'<li><span>{label}</span></li>',
					'htmlOptions'=>array ('class'=>'breadcrumb')
			)); ?>
			<!-- breadcrumbs -->
			<?php endif?>

			<?php echo $content ?>


		</div>
		<!--/.fluid-container-->
	</div>
	<!-- 
	<div class="extra">
	  <div class="container">
		<div class="row">
			<div class="col-md-3">
				<h4>Heading 1</h4>
				<ul>
					<li><a href="#">Subheading 1.1</a></li>
					<li><a href="#">Subheading 1.2</a></li>
					<li><a href="#">Subheading 1.3</a></li>
					<li><a href="#">Subheading 1.4</a></li>
				</ul>
			</div> 
			
			<div class="col-md-3">
				<h4>Heading 2</h4>
				<ul>
					<li><a href="#">Subheading 2.1</a></li>
					<li><a href="#">Subheading 2.2</a></li>
					<li><a href="#">Subheading 2.3</a></li>
					<li><a href="#">Subheading 2.4</a></li>
				</ul>
			</div> 
			
			<div class="col-md-3">
				<h4>Heading 3</h4>	
				<ul>
					<li><a href="#">Subheading 3.1</a></li>
					<li><a href="#">Subheading 3.2</a></li>
					<li><a href="#">Subheading 3.3</a></li>
					<li><a href="#">Subheading 3.4</a></li>
				</ul>
			</div> 
			
			<div class="col-md-3">
				<h4>Heading 4</h4>
				<ul>
					<li><a href="#">Subheading 4.1</a></li>
					<li><a href="#">Subheading 4.2</a></li>
					<li><a href="#">Subheading 4.3</a></li>
					<li><a href="#">Subheading 4.4</a></li>
				</ul>
				</div> 
			</div> 
		</div> 
	</div>
 -->

	<div class="footer">
		<div class="container">
			<div class="row">
				<div id="footer-copyright" class="col-md-6">About us | Contact us |
					Terms & Conditions</div>
				<!-- /span6 -->
				<div id="footer-terms" class="col-md-6">
					© 2012-13 Black Bootstrap. <a href="http://nachi.me.pn"
						target="_blank">Nachi</a>.
				</div>
				<!-- /.span6 -->
			</div>
			<!-- /row -->
		</div>
		<!-- /container -->
	</div>
</body>
</html>
